home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-26 | 4.1 KB | 165 lines | [TEXT/MPS ] |
- # Interactive macros to build Rez definitions
- # Frank Alviani - Tuesday, December 9, 1986 2:02:07 PM
- # Used with another language menu; no 'top' or 'bottom' macros needed
-
- AddMenu Rez 'Alert' '"{MPW}macros:doAlert"'
- AddMenu Rez 'Bundle' '"{MPW}macros:doBundle"'
- AddMenu Rez 'Control' '"{MPW}macros:doControl"'
- AddMenu Rez 'DITL' ∂
- 'begin;∂
- set lclItm 1;∂
- "{MPW}macros:getResAttrs" DITL;∂
- echo "∂{";∂
- end'
- AddMenu Rez 'End DITL' 'replace \;\ "∂n∂}∂n∂};∂n" "{active}"'
- AddMenu Rez 'DLOG' '"{MPW}macros:doDLOG"'
- AddMenu Rez 'FREF' '"{MPW}macros:doFREF"'
- AddMenu Rez 'MENU' '"{MPW}macros:doMENU"'
- AddMenu Rez 'SIZE' '"{MPW}macros:doSize"'
-
- AddMenu Rez 'STR ' ∂
- 'begin;∂
- "{MPW}macros:getResAttrs" "STR ";∂
- set str "`{st}`";∂
- echo " ∂"{str}∂"" ;∂
- echo "∂};";∂
- end'
-
- AddMenu Rez 'STR#' ∂
- 'begin;∂
- "{MPW}macros:getResAttrs" "STR#";∂
- echo -n "∂{ ";∂
- loop;∂
- set str "`{st}`";∂
- break if ("{str}" == "") OR ({status} != 0);∂
- echo " ∂"{str}∂";" ;∂
- end;∂
- cut \;\ "{active}" ;∂
- echo "∂n∂}∂n∂};";∂
- end'
-
- AddMenu Rez 'WIND' '"{MPW}macros:doWIND"'
-
- AddMenu Rez '(-' ''
-
- AddMenu Rez 'Button' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- set tex "`{tit}`";∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " button ∂{{onoff},∂"{tex}∂"∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez 'Checkbox' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- set tex "`{tit}`";∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " Checkbox ∂{{onoff},∂"{tex}∂"∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez 'RadioButton' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- set tex "`{tit}`";∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " RadioButton ∂{{onoff},∂"{tex}∂"∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez 'ControlItem' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- set cntlID "`{cid}`";∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " Control ∂{{onoff},{cntlID}∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez 'StaticText' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- set tex "`{tit}`";∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " StaticText ∂{{onoff},∂"{tex}∂"∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez 'EditText' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- set tex "`{tit}`";∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " EditText ∂{{onoff},∂"{tex}∂"∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez 'Icon' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- set cntlID "`{cid}`";∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " Icon ∂{{onoff},{cntlID}∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez 'Picture' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- set cntlID "`{cid}`";∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " Picture ∂{{onoff},{cntlID}∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez 'UserItem' ∂
- 'begin;∂
- set exit 0;∂
- set rr "`{br}`";∂
- confirm "Enabled?";∂
- if "{status}" == 0 ; set onoff enabled ;∂
- else ; set onoff disabled; end;∂
- echo "∂{{rr}∂},∂t∂/* {lclItm} *∂/";∂
- echo " UserItem ∂{{onoff}∂};";∂
- set lclItm `evaluate {lclItm} + 1`;∂
- end'
-
- AddMenu Rez '(-' ''
-
- AddMenu Rez 'Shift Item' '"{MPW}macros:doShift"'
- AddMenu Rez 'Adjust Width' '"{MPW}macros:doWiden"'
- AddMenu Rez 'Adjust Height' '"{MPW}macros:doTaller"'